import { APPKEY } from '@/configs/keys.js'
import axios from 'axios'

function aGet(options) {
  axios
    .get(options.url, { params: { ...options.data, key: APPKEY } })
    .then(data => {
      options.success(data)
    })
    .catch(err => {
      options.error(err)
    })
}
export { aGet }
